User.objects.filter(id__in=[1, 5, 34, 567, 229]) print _.query SELECT [fields] FROM "auth_user" WHERE "auth_user"."id" IN (1, 5, 34, 567, 229)